From Gerhard:
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Jul 2013 22:58:40 +0000 (22:58 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 12 Jul 2013 22:58:40 +0000 (22:58 +0000)
commit7afb3f2fe4374d0018621c9cec8fb0793c5fd444
tree301496538fe70eacc0d14c87fc5327102dd891c2
parent88a855f3daa44efe0e02ad95c489feef1aecc382
From Gerhard:
* gtm.cc MSVC compiler limit
Converted "else if" structure to array with the following perl snippet, so not hand coded
 perl -ne 'BEGIN{$i=-1; $n=0} $t=0; if(/\bn\s*\<\s*(\d+)/){$n2=$1;} if(/indatum\s*=\s*(-?\d+).*\/\*\s*(.*)\*\//){$i=$1;$c=" : $2"; $t=1;}elsif(/\{\s*\}/){$i=-1;$c=""; $t=1;} if($t){print " ";while($n<$n2){print " $i,";$n++;}print " // < $n2$c\n"}' gtm.c.snippet
* QString toAscii() removed in Qt5.1
Replaced use of toAscii() with toLatin1() so Qt5.1 can be used with GPSBabel (commandline, GUI not tested)
Note that gtm.cc file contains "datum" patch too.

git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4428 f51c46e8-681c-474f-0cfe-069cfd0219fb
gpsbabel/csv_util.cc
gpsbabel/gdb.cc
gpsbabel/gtm.cc
gpsbabel/util.cc
gpsbabel/xmlgeneric.cc